package net.lab1024.sa.admin.module.business.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * erp生产订单与对应表 实体类
 *
 * @Author akita
 * @Date 2025-04-17 14:03:35
 * @Copyright 无
 */

@Data
@TableName("account")
public class AccountEntity {

    @TableId(type = IdType.AUTO)
    private Long docEntry;
    private Long objId;
    private String objName;
    private String docStatus;
    private Integer absId;
    private Boolean approved;
    private String remark;
    @Version
    private Integer version;
    private Long deptId;
    private String deptName;


    @TableField(fill = FieldFill.INSERT)
    private Long createById;
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateById;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<AccountaEntity> lista;
    @TableField(exist = false)
    private List<AccountbEntity> listb;
    @TableField(exist = false)
    private List<AccountcEntity> listc;

    @TableField(exist = false)
    private BigDecimal workTime = BigDecimal.ZERO;
    @TableField(exist = false)
    private BigDecimal workCost = BigDecimal.ZERO;
    @TableField(exist = false)
    private BigDecimal workOverTime = BigDecimal.ZERO;
    @TableField(exist = false)
    private BigDecimal workOverCost = BigDecimal.ZERO;






}
